/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.coupon.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ykht.proj.common.core.util.R;
import com.ykht.proj.coupon.entity.FxWaiterExt;
import com.ykht.proj.coupon.vo.FxWaiterExtVo;

import java.util.List;

/**
 * 服务员扩展表
 *
 * @author proj code generator
 * @date 2021-02-01 19:00:18
 */
public interface FxWaiterExtService extends IService<FxWaiterExt> {

	/**
	 * 分销分页列表
	 * @param page
	 * @param fxWaiterExtVo
	 * @return
	 */
	IPage<FxWaiterExtVo> findPage(Page page, FxWaiterExtVo fxWaiterExtVo);

	/**
	 * 记录详情的饭友 分页查询（饭友概况）统计
	 * @param fxWaiterExtVo
	 * @return
	 */
    FxWaiterExtVo getFanYouListPageCount(FxWaiterExtVo fxWaiterExtVo);

	/**
	 * 记录详情的饭友 分页查询
	 * @param page
	 * @param fxWaiterExtVo
	 * @return
	 */
    IPage<FxWaiterExtVo> getFanYouListPage(Page page, FxWaiterExtVo fxWaiterExtVo);


	FxWaiterExt findByLoginId(Long userId);

    R replaceShop(FxWaiterExt fxWaiterExt);

	/**
	 * 获取当前登录人 服务员ID集合
	 * @return
	 */
    List<Long> getWaiterIdList();

	/**
	 * 获取服务员列表
	 * @param page
	 * @param fxWaiterExtVo
	 * @return
	 */
	IPage<FxWaiterExtVo> getWaiterExtPageList(Page page, FxWaiterExtVo fxWaiterExtVo);
}
